package com.nbsaas.boot.marketing.rest.convert;

import com.nbsaas.boot.marketing.data.entity.FlashSaleProduct;
import com.nbsaas.boot.marketing.api.domain.simple.FlashSaleProductSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 秒杀商品-列表对象转换器
*/

public class FlashSaleProductSimpleConvert implements Converter<FlashSaleProductSimple, FlashSaleProduct> {




@Override
public FlashSaleProductSimple convert(FlashSaleProduct source) {
    FlashSaleProductSimple result = new FlashSaleProductSimple();

                result.setFlashSaleId(source.getFlashSaleId());
                result.setSoldCount(source.getSoldCount());
                result.setProductId(source.getProductId());
                result.setOriginalPrice(source.getOriginalPrice());
                result.setStockLimit(source.getStockLimit());
                result.setId(source.getId());
                result.setFlashPrice(source.getFlashPrice());
                result.setAddDate(source.getAddDate());
                result.setSkuId(source.getSkuId());
                result.setPerLimit(source.getPerLimit());
                result.setLastDate(source.getLastDate());


    return result;
}

}